'use strict';

angular.module('afasApp')
.directive('eventFocus', ['$timeout', function ($timeout) {
  return {
    link: function(scope, element, attrs) {
      element.bind('click', function() {
        $timeout(function() {
          document.getElementById(attrs.eventFocusId).focus();
        });
      });
    }
  };
}]);